--[[
卡片详细信息显示
]]
local CardInfoSprite = class("CardInfoSprite", BaseSprite)




function CardInfoSprite:initView()
  	--卡片信息
 	self.txt_title_ = cc.ui.UILabel.new({
        text = "==================卡片信息============================",
        size = 16,
        color = display.COLOR_WHITE,
    }):align(display.BOTTOM_LEFT, 0, 90):addTo(self)
  
  	self.txt_id_ = cc.ui.UILabel.new({
        text = "对象id:",
        size = 16,
        color = display.COLOR_WHITE,
    }):align(display.BOTTOM_LEFT, 0, 60):addTo(self)
    
  
   self.txt_cardSpriteId_ = cc.ui.UILabel.new({
        text = "卡片id:",
        size = 16,
        color = display.COLOR_WHITE,
    }):align(display.BOTTOM_LEFT, 0, 30):addTo(self)
    
    
    self.txt_isW_ =cc.ui.UILabel.new({
        text = "是否特殊因子:",
        size = 16,
        color = display.COLOR_WHITE,
    }):align(display.BOTTOM_LEFT, 0, 0):addTo(self)
    
end




function CardInfoSprite:updateView(targetCard)
	self.txt_id_:setString("对象id：	"..targetCard.id_);
	self.txt_cardSpriteId_:setString( "卡片id：	"..targetCard.cardSpriteId_);
	self.txt_isW_:setString("是否特殊因子：	".."否");
end






return CardInfoSprite
